﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="VoterRegister.aspx.cs" Inherits="OVS.VoterRegister" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<link href="~/OVS.css" rel="stylesheet" type="text/css" />
<link href="~/themes/ui-lightness/jquery.ui.all.css" rel="stylesheet" type="text/css" />


 
    <title></title>
     <script type="text/javascript" src="<%= ResolveUrl("~/Scripts/jquery.js") %>" ></script> 
       <script type="text/javascript" src="<%= ResolveUrl("~/Scripts/jquery.ui.datepicker.js") %>" ></script> 
       <script type="text/javascript" src="<%= ResolveUrl("~/Scripts/jquery.ui.core.js") %>" ></script> 
    <script type="text/javascript">
        $(document).ready(function() {
        $("#<%=txtDateOfBirth.ClientID %>").datepicker({ dateFormat: 'mm-dd-yy', changeMonth:true, changeYear: true, yearRange: '1900:2010' });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div> <center>
         <asp:Label ID="lblMsg" runat="server" CssClass="message"></asp:Label>
                <asp:Label ID="lblErrMsg" runat="server" CssClass="error"></asp:Label>
       <asp:ValidationSummary ID="vsmErrors" runat="server" CssClass="summarymessage" 
       Style="text-align: left;width:20%" />
            
       
            <div>
                    <asp:Label ID="Label1" runat="server" CssClass="ParaTitle">Add/Update Voter </asp:Label>
                    </div>
           
          
    <table cellpadding = "2" cellspacing = "2">
              <tr>
                <td colspan = 2>
                 <OVSControl:SelectWard ID="SelectWard" runat="server" />
                </td>
              </tr>
              
               
                <tr>
                <td colspan = 2><hr /></td>
                </tr>
                <tr>
                    <td><asp:Label ID="Label3" runat="server" CssClass="label" >Name </asp:Label></td>
                    <td><asp:TextBox ID = "txtname" CssClass="textfield" runat = "server"></asp:TextBox>
                      <span id="Span3" runat="Server" class="labelRequiredField">*</span>
                   <asp:RequiredFieldValidator
                                ID="rfvName" runat="server" ControlToValidate="txtname" 
                                ErrorMessage="Please enter Name" >&nbsp;</asp:RequiredFieldValidator>
                    </td>
                </tr>
                 <tr>
                    <td><asp:Label ID="Label4" runat="server" CssClass="label" >Father Name </asp:Label></td>
                    <td><asp:TextBox ID = "txtFatherName"  CssClass="textfield" runat = "server"></asp:TextBox>
                      <span id="Span4" runat="Server" class="labelRequiredField">*</span>
                     <asp:RequiredFieldValidator
                                ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtFatherName" 
                                ErrorMessage="Please enter Father Name" >&nbsp;</asp:RequiredFieldValidator>
                    </td>
                    
                </tr>
                 <tr>
                    <td><asp:Label ID="Label5" runat="server" CssClass="label" >Date Of Birth </asp:Label></td>
                    <td>
                   
                    <asp:TextBox ID = "txtDateOfBirth" CssClass="textfield" runat = "server"></asp:TextBox>
                      <span id="Span5" runat="Server" class="labelRequiredField">*</span>
                     <asp:RequiredFieldValidator
                                ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtDateOfBirth" 
                                ErrorMessage="Please enter Date" >&nbsp;</asp:RequiredFieldValidator>
                    </td>
                    
                </tr>
                 <tr>
                    <td><asp:Label ID="Label6" runat="server" CssClass="label" >Address </asp:Label></td>
                    <td><asp:TextBox ID = "txtAddress"  Rows="5" CssClass="textfield" TextMode = "MultiLine" runat = "server"></asp:TextBox>
                      <span id="Span6" runat="Server" class="labelRequiredField">*</span>
                     <asp:RequiredFieldValidator
                                ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtAddress" 
                                ErrorMessage="Please enter Address" >&nbsp;</asp:RequiredFieldValidator>
                    </td>
                    
                </tr>
                 <tr>
                    <td><asp:Label ID="Label7" runat="server" CssClass="label" >EmailID </asp:Label></td>
                    <td><asp:TextBox ID = "txtEmailId" CssClass="textfield"  runat = "server"></asp:TextBox>
                      <span id="Span7" runat="Server" class="labelRequiredField">*</span>
                     <asp:RequiredFieldValidator
                                ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtEmailId" 
                                ErrorMessage="Please enter EmailID" >&nbsp;</asp:RequiredFieldValidator>
                    </td>
                </tr>
                 <tr>
                    <td><asp:Label ID="Label8" runat="server" CssClass="label" >Voter ID </asp:Label></td>
                    <td><asp:TextBox ID = "txtVoterId" CssClass="textfield" runat = "server"></asp:TextBox>
                     <span id="Span8" runat="Server" class="labelRequiredField">*</span>
                     <asp:RequiredFieldValidator
                                ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtVoterId" 
                                ErrorMessage="Please enter VoterId" >&nbsp;</asp:RequiredFieldValidator>
                    </td>
                </tr>
                 <tr>
                    <td><asp:Label ID="Label9" runat="server" CssClass="label" >Photo </asp:Label></td>
                    <td>
                    <div id="showPhoto" runat="server">
                        <asp:Image ID="imgPhoto"  Width="100px" Height="100px" runat="server" />
                    </div>
                    <asp:FileUpload ID="voterPhoto" runat="server" />
                    </td>
                </tr>
                 <tr>
                    <td></td>
                    <td><asp:Button   CssClass="button"  ID = "btnSave" value = "Save" Text = "Save" OnClick="btnSave_Click" runat= "server"></asp:Button>
                    <asp:Button CausesValidation = "false"  CssClass="button" ID = "btnReset" value = "Reset" Text = "Reset" OnClick="btnReset_Click" runat = "server"></asp:Button>
                     </td>
                </tr>
        </table> </center>         
          
    
    </div>
    </form>
</body>
</html>
